package rm.validator.password;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

/**
 *
 * @author slavko.bojagic
 */
public class PasswordValidator implements ConstraintValidator<Password, String> {

    @Override
    public void initialize(Password password) {
        // Empty
    }

    @Override
    public boolean isValid(String value, ConstraintValidatorContext constraintContext) {
        System.out.println("VALIDATOR OKIDA !!!!!");
        System.out.println(value);

        System.out.println("String NULL ili Prazan !!!!");
        return false;
    }
}
